home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_15_1987_Transactor_Publishing.d64
/
robot arm 1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
487b
|
19 lines
1 rem manual control of robot motors
2 rem rolf a deininger july 1983
10 poke 37138,15 :rem all lines output
20 poke 37136,0:rem turn all motors off
30 dim cs$(13),cn(13)
40 for i=1 to 13:read cn(i):next i
50 data 2,1,6,5,9,10,13,14,17,18,21,22,0
60 cs$="brblerelsusdwrwlhchowuwdst"
70 print"robot motor control":print
80 print "command ";
90 input cm$:cm$=left$(cm$,2)
100 if cm$="en" then poke 37136,0:end
110 for i=1 to 13
120 ifcm$<>mid$(cs$,i*2-1,2) then 130
125 poke 37136,cn(i):print " ":(NULL) to 80
130 next i
140 print"unknown command"
150 (NULL) to 80